package com.xxx.user.service;

import com.xxx.user.domain.User;
import com.xxx.user.query.UserQuery;

import java.util.List;

public interface IUserService {
    List<User> findAll();
    //根据id查询
    User findOne(Long id);
    //分页查询
    List<User> findByPage(UserQuery userQuery);
    //修改
    void updateById(User user);
    //增加数据
    void insert(User user);
    //删除用户
    void deleteById(Long id);
    //批量删除
    void  bathUsers(Long[] ids);
}
